//
//  AdScrollView.h
//  Test
//
//  Created by lizq on 15/8/19.
//  Copyright (c) 2015年 lizq. All rights reserved.
//


#import <UIKit/UIKit.h>

@protocol AdScrollViewDelegate <NSObject>

- (void)clickAdView:(NSInteger)index;

@end

@protocol AdScrollViewDataDelegate <NSObject>

- (NSInteger)numberOfAdView;

- (CGFloat)adViewWidthIndex:(NSInteger)index;

- (UIView *)adViewWithIndex:(NSInteger)index;

@end

@interface AdScrollView : UIView
@property(nonatomic,assign)id<AdScrollViewDataDelegate> dataDelegate;
@property(nonatomic,assign)id<AdScrollViewDelegate> delegate;
- (void)reloadData;
@end
